//    Copyright (C) Kherty.  All rights reserved.
using System;
using OpenLS.Spreadsheet.Expressions;

namespace OpenLS.Spreadsheet
{
    class WorkbookEvaluationContext: EvaluationContext
    {
        private readonly Workbook _workbook;

        public WorkbookEvaluationContext(Workbook workbook)
        {
            _workbook = workbook;
        }

        internal override EvaluationContext CreateOffseted(CellRelativeAddress cellRelativeAddress)
        {
            return new WorkbookEvaluationContext(_workbook);
        }
        public override CellRelativeAddress Offset
        {
            get { return new CellRelativeAddress(); }
        }
        public override Cell Target
        {
            get { return null; }
        }
        public override Workbook Workbook
        {
            get { return _workbook; }
        }
        public override Worksheet Worksheet
        {
            get { return null;}
        }
    }
}